#pragma once

#include "ILevel.h"
#include "PolylineCollisionObject.h"

class Level5 : public ILevel {

public:

	virtual ~Level5();

	void Load( Dock* docks, GameplayBackground* background );
	void Unload();
	
	// return -1 todo nothing
	// return 1 to start a new ship with the provided data
	// return 2 to show an overlay message
	// return 3 if the level is over
	LevelUpdateReturnStatus::Enum Update( DockType::Enum *type, CIwFVec2* p1, CIwFVec2* p2, float dt );
	
	void Draw ();
	
	void ShipAdded( Ship *ship );
	void ShipOutOfScreen( Ship *ship );
	
private:
	float m_roation_status;

	int m_num_added_ships;
	int m_num_active_ships;

	float m_time_for_next_ship;
};